# -*- coding: utf-8 -*-




from django.conf.urls import url,include
import views

urlpatterns = [
    url(r'^$',views.index,name='cms_index'),
    url(r'^login/$',views.cms_login,name='cms_login'),
    url(r'^logout/$',views.cms_logout,name='cms_logout'),
    url(r'^add_article/$',views.add_article,name='cms_add_article'),
    url(r'^settings/$',views.settings,name='cms_settings'),
    url(r'^update_profile/$',views.update_profile,name='cms_update_profile'),
    url(r'^get_token/$',views.get_token,name='cms_get_token'),
    url(r'^update_email/$',views.update_email,name='cms_update_email'),
    url(r'^check_email/(?P<code>\w+)$',views.check_email,name='cms_check_email'),
    url(r'^add_category/$',views.add_category,name='cms_add_category'),
    url(r'^add_tag/$',views.add_tag,name='cms_add_tag'),
    url(r'^test/$',views.test)
]